
package biblio.bean;


import java.util.Date;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;


/**
 *
 * @author mephisto
 */
@ManagedBean
@RequestScoped
public class HireBean
{
    public String getBook()
    {
        return book;
    }

    public void setBook(String book)
    {
        this.book = book;
    }

    public Date getHireDate()
    {
        return hireDate;
    }

    public void setHireDate(Date hireDate)
    {
        this.hireDate = hireDate;
    }

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public String getReader()
    {
        return reader;
    }

    public void setReader(String reader)
    {
        this.reader = reader;
    }

    public Date getReturnDate()
    {
        return returnDate;
    }

    public void setReturnDate(Date returnDate)
    {
        this.returnDate = returnDate;
    }

    public void clear()
    {
        id = 0;
        hireDate = null;
        returnDate = null;
        reader = "";
        book = "";
    }

    private int id;
    private Date hireDate;
    private Date returnDate;
    private String reader;
    private String book;
}
